package com.zhaorui.form;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TitleAddForm {

    /**
     * 活动主题
     */
    @NotNull
    private String activityTopic;

    /**
     * 宣传图片
     */
    @NotNull
    private String activityPic;

    /**
     * 活动简介
     */
    @NotNull
    private String activityExplain;

    /**
     * 活动开始时间
     */
    @NotNull
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @JsonFormat(locale = "zh",pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date starttime;



    /**
     * 活动结束时间
     */
    @NotNull
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @JsonFormat(locale = "zh",pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date overtime;


    /**
     * 活动类型:1:随机，2.指定....
     */
    @NotNull
    private Integer activityType;
}
